<div class="ibox">
	<div class="ibox-title">
		<h5>目录编辑</h5>
		<div class="pull-right">
			<#if dataRegion.id??>&nbsp;<a href="javascript:" style="font-size:12px;color:#666" onclick="add(${dataRegion.id!})">新增子节点</a>&nbsp;&nbsp;</#if>
   		<a href="javascript:" style="font-size:12px;color:#666" onclick="closeEdit()">关闭</a>
    </div>
	</div>
	<div class="ibox-content">
		<form id="form" class="form-horizontal required-validate" method="post" action="saveRegion" novalidate="novalidate" onsubmit="return validateCallback(this,thisAjaxDone)">
			<input type="hidden" name="dataRegion.id" value="${dataRegion.id!}"/>
			<input type="hidden" name="dataRegion.parent_id" value="${dataRegion.parent_id!}"/>
			<div class="form-group">
		   	<label class="col-xs-2 control-label">上级区划：</label>
		     <div class="col-xs-9" style="line-height: 35px">
		     	<#if parentRegion??>${parentRegion.province!}${parentRegion.city!}${parentRegion.district!}<#else>无</#if>
		     </div>
		   </div>
			<div class="form-group">
		   	<label class="col-xs-2 control-label">区划编码：</label>
		     <div class="col-xs-9">
		     	<input type="text" class="form-control required" name="dataRegion.code" value="${dataRegion.code!}"/>
		     </div>
		   </div>
			<div class="form-group">
		   	<label class="col-xs-2 control-label">省：</label>
		     <div class="col-xs-9">
		     	<input type="text" class="form-control" name="dataRegion.province" value="${dataRegion.province!}"/>
		     </div>
		   </div>
			<div class="form-group">
		   	<label class="col-xs-2 control-label">市：</label>
		     <div class="col-xs-9">
		     	<input type="text" class="form-control" name="dataRegion.city" value="${dataRegion.city!}"/>
		     </div>
		   </div>
			<div class="form-group">
		   	<label class="col-xs-2 control-label">县/区：</label>
		     <div class="col-xs-9">
		     	<input type="text" class="form-control" name="dataRegion.district" value="${dataRegion.district!}"/>
		     </div>
		   </div>
		   <div class="form-group">
		   	<div class="col-xs-9 col-xs-offset-2">
		     	<button type="submit" class="btn btn-primary">保存</button>
		     	<#if dataRegion.id??>&nbsp;
		     	<a class="btn btn-danger" href="deleteCatalog?id=${dataRegion.id!}" target="ajaxTodo" title="确定删除吗？" callback="deleteAjaxTodo">删除</a>
		     	</#if>
		     </div>
		   </div>
		 </form>
 		</div>
	</div>